home *** CD-ROM | disk | FTP | other *** search
- Path: news-m01.ny.us.ibm.net!usenet
- From: jrobertson@ibm.net (James Robertson)
- Newsgroups: comp.lang.c++
- Subject: Re: 3D Dialog Boxes
- Date: Mon, 15 Jan 1996 01:40:22 GMT
- Message-ID: <4dc6f5$4rbk@news-s01.ny.us.ibm.net>
- References: <4d98vr$5q6@felix.junction.net>
- NNTP-Posting-Host: slip202-135-13-79.sy.au.ibm.net
- X-Newsreader: Forte Free Agent 1.0.82
-
- heppner@portage.net (Donald Heppner) wrote:
-
- >I was wondering what is involved to make a dialog box 3D sytle in Borland
- >C++ 4.0. If someone could tell me what to look up in the manuals, or can
- >offer some advice, I would appreciate it.
-
- >Thanks,
- >Donald
-
- You need to use some functions in ctl3d.dll. I use Visual C++ 1.51
- but I presume the technique is the same across compilers. Here's what
- I do:
-
- In your app's InitInstance ( or whatever Borland's equivalent is)
-
- Ctl3dRegister(AfxGetInstanceHandle());
- Ctl3dAutoSubclass(AfxGetInstanceHandle());
-
- In your app's ExitInstance ( or whatever Borland's equivelant is)
-
- Ctl3dUnregister(AfxGetInstanceHandle());
-
- In your dialog's OnCtlColor() ( or whatever Borland's equivelant is)
-
- Ctl3dColorChange();
-
- Of course, you will need to include the Ctl3d.h file and link with
- Ctl3d.lib and have ctl3d.dll in your path somewhere. If you need
- these, mail me and I'll send em! (Mitch@ibm.net).
-
- Good luck
-
-
-
-
-
-